'''
第一版本：线性代码，实现对注册接口的测试。
1.构造测试数据
2.下发请求
3.检查结果
'''

import requests
url = "http://192.168.2.36:8089/futureloan/mvc/api/member/register?mobilephone=1811234567&pwd=123456"
r = requests.get(url)
print(r.text)
url = "http://192.168.2.36:8089/futureloan/mvc/api/member/register?mobilephone=181123456789&pwd=123456"
r = requests.get(url)
print(r.text)
url = "http://192.168.2.36:8089/futureloan/mvc/api/member/register?mobilephone=123456789*￥&pwd=123456"
r = requests.get(url)
print(r.text)
url = "http://192.168.2.36:8089/futureloan/mvc/api/member/register?pwd=123456"
r = requests.get(url)
print(r.text)
url = "http://192.168.2.36:8089/futureloan/mvc/api/member/register?mobilephone=15212345678&pwd=123456&regname=dkdsjisjiofjioejfoiejfoiejfoieieouoiewjuoiewufoiewjuoiewufoiewjfoiewoiew"
r = requests.get(url)
print(r.text)
url = "http://192.168.2.36:8089/futureloan/mvc/api/member/register?mobilephone=18012345678&pwd=123456"
r = requests.get(url)
print(r.text)
url = "http://192.168.2.36:8089/futureloan/mvc/api/member/register?mobilephone=18112345679&pwd=12345"
r = requests.get(url)
print(r.text)
url = "http://192.168.2.36:8089/futureloan/mvc/api/member/register?mobilephone=18112345679&pwd=1234567891234567890"
r = requests.get(url)
print(r.text)
url = "http://192.168.2.36:8089/futureloan/mvc/api/member/register?mobilephone=18112345679"
r = requests.get(url)
print(r.text)
print(r.json())
print(r.json()['code'])





